package com.docking.heylo.dao.mapper;

import com.docking.heylo.dao.entity.UserAccountRecord;
import com.docking.heylo.dao.entity.UserAccountRecordExample;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

public interface UserAccountRecordMapper {

    long countByExample(UserAccountRecordExample example);

    int deleteByExample(UserAccountRecordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(UserAccountRecord record);

    int insertSelective(UserAccountRecord record);

    List<UserAccountRecord> selectByExample(UserAccountRecordExample example);

    UserAccountRecord selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") UserAccountRecord record, @Param("example") UserAccountRecordExample example);

    int updateByExample(@Param("record") UserAccountRecord record, @Param("example") UserAccountRecordExample example);

    int updateByPrimaryKeySelective(UserAccountRecord record);

    int updateByPrimaryKey(UserAccountRecord record);

    List<Map<String,Object>> selectHistoryByUserId(@Param("userId") int userId,
                                                   @Param("businessType") Integer businessType, @Param("status") Integer status,
                                                   @Param("beginTime") Date beginTime, @Param("endTime") Date endTime);


}